import request from '@/utils/request'

// 查询会议室预约列表
export function listMeetingappointments(query) {
  return request({
    url: '/dailyoperations/meetingappointments/list',
    method: 'get',
    params: query
  })
}

// 查询会议室预约详细
export function getMeetingappointments(id) {
  return request({
    url: '/dailyoperations/meetingappointments/' + id,
    method: 'get'
  })
}

// 新增会议室预约
export function addMeetingappointments(data) {
  return request({
    url: '/dailyoperations/meetingappointments',
    method: 'post',
    data: data
  })
}

// 修改会议室预约
export function updateMeetingappointments(data) {
  return request({
    url: '/dailyoperations/meetingappointments',
    method: 'put',
    data: data
  })
}

// 删除会议室预约
export function delMeetingappointments(id) {
  return request({
    url: '/dailyoperations/meetingappointments/' + id,
    method: 'delete'
  })
}
